package com.kedou.sdk.params.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2017/6/9 0009.
 */

public class Goods implements Parcelable {

    private String goodsName;
    private long goodsPrice;
    private String goodsDesc;
    private int gainCount;
    private int serverId;
    private String serverName;
    private String extraData;
    private String roleId;
    private String roleName;
    private String goodsId;
    private int mCredits;


//    //平台订单号.在支付SDK界面,拉起第三方支付之前,sdk负责获取
//    public String orderId;
//    //第三方平台订单号,微信的prepay_id
//    public String thirdOrderId;


    public Goods(String goodsName, long goodsPrice) {
        this.goodsName = goodsName;
        this.goodsPrice = goodsPrice;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public long getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(long goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public String getGoodsDesc() {
        return goodsDesc;
    }

    public void setGoodsDesc(String goodsDesc) {
        this.goodsDesc = goodsDesc;
    }

    public int getGainCount() {
        return gainCount;
    }

    public void setGainCount(int gainCount) {
        this.gainCount = gainCount;
    }

    public int getServerId() {
        return serverId;
    }

    public void setServerId(int serverId) {
        this.serverId = serverId;
    }

    public String getServerName() {
        return serverName;
    }

    public void setServerName(String serverName) {
        this.serverName = serverName;
    }

    public String getExtraData() {
        return extraData;
    }

    public void setExtraData(String extraData) {
        this.extraData = extraData;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public int getmCredits() {
        return mCredits;
    }

    public void setmCredits(int mCredits) {
        this.mCredits = mCredits;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.goodsName);
        dest.writeLong(this.goodsPrice);
        dest.writeString(this.goodsDesc);
        dest.writeInt(this.gainCount);
        dest.writeInt(this.serverId);
        dest.writeString(this.serverName);
        dest.writeString(this.extraData);
        dest.writeString(this.roleId);
        dest.writeString(this.roleName);
        dest.writeString(this.goodsId);
        dest.writeInt(this.mCredits);
    }

    protected Goods(Parcel in) {
        this.goodsName = in.readString();
        this.goodsPrice = in.readLong();
        this.goodsDesc = in.readString();
        this.gainCount = in.readInt();
        this.serverId = in.readInt();
        this.serverName = in.readString();
        this.extraData = in.readString();
        this.roleId = in.readString();
        this.roleName = in.readString();
        this.goodsId = in.readString();
        this.mCredits = in.readInt();
    }

    public static final Creator<Goods> CREATOR = new Creator<Goods>() {
        @Override
        public Goods createFromParcel(Parcel source) {
            return new Goods(source);
        }

        @Override
        public Goods[] newArray(int size) {
            return new Goods[size];
        }
    };
}
